package com.proposition.user.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.proposition.commons.model.RolePermission;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * ${DESCRIPTION}
 *
 * @author 杨凯
 * @create 2017-11-01 16:34
 **/
@Mapper
public interface RolePermissionMapper extends BaseMapper<RolePermission>{

	/**
	 * 批量插入权限信息
	 * @param roleId
	 * @param permissionId
	 * @return
	 */
	boolean insertBatchPermission(@Param("roleId") Integer roleId, @Param("permId") Integer[] permissionId);

}
